/**
 * Created by yinhong on 2018/6/23.
 */
//动态设置像素比
// var pixelRatio = 1 / window.devicePixelRatio;
//document.write('<meta name="viewport" content="width=device-width,initial-scale='+ pixelRatio +',minimum-scale='+ pixelRatio +',maximum-scale='+ pixelRatio +',user-scalable=no" />');

//获取html节点
var html=document.getElementsByTagName("html")[0];
//获取屏幕宽度
var pageWidth=html.getBoundingClientRect().width;
//屏幕宽度/数值=结果
html.style.fontSize=pageWidth/15+"px";

//补0操作
function getzf(num){
    if(parseInt(num) < 10){
        num = '0'+num;
    }
    return num;
}